package com.lanou.zhihu.mapper;

import com.lanou.zhihu.entity.Comment;

import java.util.List;
import java.util.Map;

/**
 * Created by QuChao on 2018/10/26.
 */
public interface CommentMapper {
    Integer add(Comment comment);

    Comment findByUidCid(Map<String, Object> map);

    Integer deleteByid(Integer cid);

    List<Comment> findByAid(Integer aid);

    Integer getCountByAid(Integer aid);

    List<Comment> findByAidState(Integer aid);

    Integer updateStateByCid(Integer cid);
}
